import type { App } from 'vue'
import SvgIcon from './SvgIcon/src/index.vue'
import Pagination from './Pagination/index.vue'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
const AllGloablComponent: any = { SvgIcon, Pagination }

export default {
  install(app: any) {
    Object.keys(AllGloablComponent).forEach((key) => {
      app.component(key, AllGloablComponent[key])
    })

    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
      app.component(key, component)
    }
  },
}
